.PHONY:all
all:
	@cd compile_server;\
	make;\
	cd -;\
	cd oj_server;\
	make;\
	cd -;

,PHONY:publish
publish:
	@mkdir -p publish/compile_server;\
	mkdir -p publish/oj_server;\
	cp -rf compile_server/compile_server publish/compile_server;\
	cp -rf compile_server/temp publish/compile_server;\
	cp -rf oj_server/conf publish/oj_server;\
	cp -rf oj_server/template_html publish/oj_server;\
	cp -rf oj_server/wwwroot publish/oj_server;\
	cp -rf oj_server/mysql_include publish/oj_server;\
	cp -rf oj_server/mysql_lib publish/oj_server;\
	cp -rf oj_server/oj_server publish/oj_server;

.PHONY:clean
clean:
	@cd compile_server;\
	make clean;\
	cd -;\
	cd oj_server;\
	make clean;\
	cd -;\
	rm -rf publish;
